<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!doctype html>
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>任务反馈记录</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<jsp:include page="/WEB-INF/views/common.jsp"></jsp:include>

  </head>
  
  <body class="easyui-layout">
  <input type="hidden" id="taskId" value="${taskId }" />
	    <table id="dg">	 </table>
  </body>
  
  <script type="text/javascript">
  $(function(){
		/**反馈列表初始化*/
		$('#dg').datagrid({    
		    title:"任务反馈列表",
			border:0,
			nowrap:true,
			striped:true,
			fit: true,//自动大小
			url:'feedback/queryList',
			queryParams : {taskId : $('#taskId').val()},
		    columns:[[    
		        {field : 'id', title : 'id', hidden:true},  
		        {field : 'name', title : '反馈主题', width:200},
		        {field : 'remark', title : '描述', width:400},
		        {field : 'progress', title : '任务完成进度', width:100},
		        {field : 'factAmount', title : '实际使用资金', width:130},
		        {field : 'createTime', title : '反馈时间', width:130},
		        {field : 'status', title : '审核状态', width:80, formatter : formateAuditStatus},
		        {field : 'auditUserName', title : '审核人', width:100},
		        {field : 'auditTime', title : '审核时间', width:130}
		    ]],
			singleSelect:true,
			rownumbers:true,
			toolbar:'#tb',
			pagination:true,
			pageSize:10,
			onClickRow:function(rowIndex, rowData){}
		}).datagrid('getPager').pagination({  
	        pageSize: 10,//每页显示的记录条数，默认为10  
	        pageList: [10,20,50],//可以设置每页记录条数的列表  
	        beforePageText: '第',//页数文本框前显示的汉字  
	        afterPageText: '页    共 {pages} 页',  
	        displayMsg: '当前显示 {from} - {to} 条记录   共 {total} 条记录'
	    });
	});
  </script>
</html>